<?php
session_start();
include((dirname(dirname(__FILE__)))."/functions/inc/util.inc.php");
include((dirname(dirname(__FILE__)))."/functions/inc/mydb.inc.php");

if(is_numeric($_GET["id"])){
    inicializar($tpl,  dirname(__FILE__)."/eliminar.html");
    $db = new mydb();
    $tpl->setVariable("id",$_GET["id"]);
    $depo=$db->consulta("SELECT * FROM sucursal WHERE suc_eliminado=0 AND cli_id=0");
    if(count($depo)){
        foreach ($depo as $d){
            $tpl->setVariable("suc_id",$d["suc_id"]);
            $tpl->setVariable("suc_nombre",$d["suc_nombre"]);
            $tpl->parse("sucs");
        }
    }
    
    $tpl->show();
}
?>
